Skip to main content

Mobile Test Actions

Mobile Test Actions in DevAssure provide a comprehensive set of touch and gesture interactions to simulate real user behaviors on mobile devices. These actions are configurable, and with the flexibility of choosing elements, durations, and distances, they enable precise and controlled testing across applications.

Touch Actions:

ActionDescription
Tap on (Element))Simulates a single tap on the specified element.
Tap on (Element) and hold for (duration) milliseconds)simulates a long press on the specified element for the given duration.
Pinch IN on (Element))Simulates a pinch-in gesture on the specified element.
Pinch OUT on (Element)Simulates a pinch-out gesture on the specified element.
Double tap on (Element))Simulates a double-tap on the specified element.
Click on (Element))Simulates a click on the specified element.
Scroll vertically on (Element))simulates a vertical scroll on the specified element.
Scroll horizontally on (Element))simulates a horizontal scroll on the specified element.
Swipe on (Element) for distance (x), (y) and hold for (duration) millisecond)Simulates a swipe gesture on the specified element.

Tap on (Element)

Simulates a single tap on the specified element.
  • Usage: Useful for interactions that require a quick tap on buttons or selectable items.

    Tap on mobile > login
  • Arguments:

    • Element: The UI element to tap on.

Tap on (Element) and hold for (duration) milliseconds

Simulates a long press on the specified element for the given duration.
  • Usage: Ideal for actions that require a long press, such as context menus.

    Tap on mobile > search and hold for 5000 milliseconds
  • Arguments:

    • Element: The UI element to long press.
  • Duration: Duration in milliseconds to hold the tap.

Pinch IN on (Element)

Simulates a pinch-in gesture on the specified element.
  • Usage: Typically used for zooming out on images or maps.

    Pinch IN on mobile > search
  • Arguments:

    • Element: The UI element to perform the pinch-in gesture.

Pinch OUT on (Element)

Simulates a pinch-out gesture on the specified element.
  • Usage:
    Useful for zooming into images or maps.

    Pinch OUT on mobile > search
  • Arguments:

    • Element: The UI element to perform the pinch-out gesture.

Double tap on (Element)

Simulates a double-tap on the specified element.
  • Usage: Used for actions requiring a quick, repeated tap, such as liking a post

    Double tap on mobile > OK
  • Arguments:

    • Element: The UI element to double-tap.

Click on (Element)

Click on (Element)
  • Usage: Similar to "Tap," useful for click actions in web-based interfaces on mobile.

    Click on mobile > search
  • Arguments:

    • Element: The UI element to click.

Scroll vertically on (Element)

Simulates a vertical scroll on the specified element.
  • Usage: Ideal for navigating through vertically scrollable content.
    Scroll vertically on mobile > product

Scroll horizontally on (Element)

Simulates a horizontal scroll on the specified element.
  • Usage: Useful for horizontally scrollable elements like carousels.
    Scroll horizontally on mobile > carousel
  • Arguments:

    • The UI element to perform the horizontal scroll.

Swipe on (Element) for distance (x), (y) and hold for (duration) milliseconds

Simulates a swipe gesture on the specified element with defined distance and duration.
  • Usage: Used for swipe-based interactions, such as dismissing notifications or navigating between screens.

    Swipe on mobile > notification for distance 100, 0 and hold for 5000 milliseconds
  • Arguments:

    • Element: The UI element to swipe.
    • Distance (x, y): X and Y coordinates representing swipe distance.
    • Duration: Time in milliseconds to hold the swipe.